#pragma once
#include <WinSock2.h>
//socket api
//send api
typedef int (WSAAPI *SENDPROC)(IN SOCKET s,
	IN const char FAR *buf,
	IN int len,
	IN int flags);

//recv api
typedef int (WSAAPI *RECVPROC)(IN SOCKET s,
	OUT char FAR *buf,
	IN int len,
	IN int flags);
//close socket api
typedef int (WSAAPI *CLOSESOCKETPROC)(SOCKET a0);

typedef int (WSAAPI *WSARECVPROC)(
	SOCKET s,
	LPWSABUF lpBuffers,
	DWORD dwBufferCount,
	LPDWORD lpNumberOfBytesRecvd,
	LPDWORD lpFlags,
	LPWSAOVERLAPPED lpOverlapped,
	LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
